\chapter{Making of this book}
\label{chap:bookmaking}

\noindent{}This work was created with \TeX Live. The main text is set in
the Google Droid fonts. All typewriter text is typeset in DejaVu Mono.


\section{Software used in creating this book}
\noindent{}Pictorial materials are created using \index{graphic tools} like \index{graphic tools!Pic}{Pic},\index{graphic tools!Gimp}{Gimp}, \index{graphic tools!Gimp}{Gimp} and \index{graphic tools!InkScape}{InkScape}. Publishing sofware is and \index{CJK}{CJK},\index{中文LaTex}{中文LaTex}. The prgamming languages used in this are \index{Go}{Go},\index{Bash}{Bash},\index{Python}{Python}. 

\begin{itemize}
\item{GNU make \qquad\url{http://www.gnu.org/software/make/}}
GNU Make is used to automate the dependency and sequence of  different tools when making this \LaTeX  book.
\item{Dia  \qquad\url{http://dia-installer.de}} \index{Dia}{Dia} is used to create the network digram used in this book.
\item{Gimp \qquad\url{http://www.mikespook.com/learning-go/>}}
\item{InkScape \qquad\url{http://www.mikespook.com/learning-go/>}}
\item{xelatex  \qquad\url{http://www.mikespook.com/learning-go/>}}
\item{Go  \qquad\url{http://www.mikespook.com/learning-go/>}}
\item{Bash  \qquad\url{http://www.mikespook.com/learning-go/>}}
\item{Python  \qquad\url{http://www.mikespook.com/learning-go/>}}
\item{Perl  \qquad\url{http://www.mikespook.com/learning-go/>}}
\item{Pic\cite{pic_flowchart}  Pic is used to create flow chart.}
\item{CJK, Chinese TeX 这里是\index{中文译本}{中文译本}: {\url{http://www.mikespook.com/learning-go/}}
}
\end{itemize}

\begin{compactenum}
\item Graphic Tools
      \begin{compactenum} 
      \item \index{graphic tools!Dia}{Xfig}
      \item \index{graphic tools!InkScape}{InkScape}
      \item \index{graphic tools!Dia}{Dia}
      \item \index{graphic tools!Graphviz}{Grapviz}
      \item \index{graphic tools!Mpost}{Mpost}
      \end{compactenum}
\item Languaes Used
      \begin{compactenum} 
      \item Bash
       \VerbatimInput[fontsize=\tiny]{txt/tbc.txt}
      \item C
       \VerbatimInput[fontsize=\tiny]{txt/tbc.txt}
      \end{compactenum}
\item Projects
      \begin{compactenum} 
      \item GitHub
       used to host main source code.
      \item \index{graphic tools!Google Code}{Google Code}
       \VerbatimInput[fontsize=\tiny]{txt/tbc.txt}
      \end{compactenum}
\end{compactenum}


\section{Enable Non-English Environment in Ubuntu 12.04}
\subsection{Enable Chinese}
\begin{itemize}
\item click dash home, search for "language support"
\item click "install/remove language" and add Chinese
\item click dash home, search for "keyboard input method"
\item under "input method",add Chinese input method
\end{itemize}

\subsection{Adapt the examples to your environment}
\begin{itemize}
\item make replace
\end{itemize}

\section{Install \TeX Live Environment in CentOS 6.3}

\section{Install \TeX Live Environment in Ubuntu 12.04}

\begin{lstlisting}[language=Bash]
for i in \
dia graphiz gimp inkscape gnumeric \
ttf-droid ttf-dejavu ttf-sazanami-gothic \
ttf-arphic-ukai texlive-fonts-recommended \
texlive-extra-utils texlive-xetex \
texlive-latex-extra texlive-latex-recommended \
texlive-metapost-doc texlive-metapost \
latex-cjk-xcjk git-core make \
;do 
sudo apt-get install \$i -y; 
done
\end{lstlisting}

\section{Install \TeX Live Environment in Ubuntu 12.10}
texlive-2012 is used in Ubuntu-12.10.
\begin{lstlisting}[language=Bash]
for i in \
dia graphiz gimp inkscape  gnumeric \
ttf-droid ttf-dejavu ttf-sazanami-gothic \
ttf-arphic-ukai texlive-fonts-recommended \
texlive-extra-utils texlive-xetex \
texlive-latex-extra texlive-latex-recommended \
texlive-metapost-doc texlive-metapost \
cjk-latex  git-core make \
;do 
sudo apt-get install \$i -y; 
done
\end{lstlisting}

\section{Install \TeX Live Environment in Debian}
texlive-2012 is used in Ubuntu-12.10.
\begin{lstlisting}[language=Bash]
for i in \
dia graphiz gimp inkscape  gnumeric \
ttf-droid ttf-dejavu ttf-sazanami-gothic \
ttf-arphic-ukai texlive-fonts-recommended \
texlive-extra-utils texlive-xetex \
texlive-latex-extra texlive-latex-recommended \
texlive-metapost-doc texlive-metapost \
cjk-latex  git-core make \
;do 
sudo apt-get install \$i -y; 
done
\end{lstlisting}

\section{Ubuntu: find Perl package}
% basicstyle is to set the font size 
\lstset{basicstyle=\tiny\color{blue}}
\begin{lstlisting}[language=Bash]
tjyang@640m:~\$ apt-cache search perl XML::Simple
libxml-simple-perl - Perl module for reading and writing XML
libdns-zoneparse-perl - Perl extension for parsing and manipulating DNS Zone Files
libgtk2-gladexml-simple-perl - clean object-oriented perl interface to Gtk2::GladeXML
libtemplate-plugin-xml-perl - XML plugins for the Template Toolkit
libtest-xml-simple-perl - Perl testing framework for XML data
libxml-libxml-simple-perl - Perl module that uses the XML::LibXML parser for XML structures
libxml-simpleobject-enhanced-perl - Perl module which enhances libxml-simpleobject-perl
libxml-simpleobject-perl - Objectoriented Perl interface to a parsed XML::Parser tree
ruby-xml-simple - Simple Ruby API for reading and writing XML
tjyang@640m:~$ 
\end{lstlisting}


\section{Book creation flowchart}
The following people have helped to make this book what it is today.

\begin{figure}[H]
\caption{Book creation flow chart}
\label{bookmaking.dia}
\begin{center}
\includegraphics[scale=0.8]{dia/bookmaking.pdf}
\end{center}
\end{figure}


\section{Book Revision History}
% http://www.andy-roberts.net/misc/latex/latextutorial4.html
%\begin{table}[!bp]
\begin{table}
\caption{Book Revision History.} \label{BookRevisionHistory}

\begin{tabular}{|l|l|l|}
\hline
\multicolumn{3}{|c|}{People contribute to this book} \\
\hline
Name & Date  & Contribution  \\ \hline
\multirow{2}{*}{T.J. Yang} 
     & 03/09/2013 & First draft of libreswan book using \LaTeX{}\\
\end{tabular}
\end{table}

\section{Libreswan Revision History}
% http://www.andy-roberts.net/misc/latex/latextutorial4.html
\begin{table}
\caption{Libreswan Revision History- TBC.} \label{LibreswanRevisionHistory}

\begin{tabular}{|l|l|l|}
\hline
\multicolumn{3}{|c|}{People contribute to Xymon} \\
\hline
Name  & Date  & Contribution  \\ \hline
\multirow{4}{*}{Defenders} & LB & Lucus Radebe \\
 & DC & Michael Duberry \\
 & DC & Dominic Matteo \\
 & RB & Didier Domi \\ \hline
\multirow{3}{*}{Midfielders} & MC & David Batty \\
 & MC & Eirik Bakke \\
 & MC & Jody Morris \\ \hline
Forward & FW & Jamie McMaster \\ \hline
\multirow{2}{*}{Strikers} & ST & Alan Smith \\
 & ST & Mark Viduka \\
\hline
\end{tabular}
\end{table}

\section{Main GNU Makefile}
\VerbatimInput[numbers=left]{Makefile}	             

%%%\begin{table}[!bp]
%%%
%%%\caption{Book Revision History.} \label{BookRevisionHistory}
%%%
%%%\begin{description}
%%%\item [Winter 2002,Henrik Storner] Original author of hobbit manpages and notes,howto articles \ldots
%%%  \index{Henrik Storner}
%%%\item [12/16/2009,T.J. Yang] Editing above manpages and miscellaneous documentsinton into a book format using Latex.
%%%\item [12/16/2009,T.J. Yang] Draw architecture diagram using Dia to help illustrate the idea.
%%%  \index{T.J. Yang}
%%%\end{description}
%%%\end{table}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "00book"
%%% End: 
